import axios from "../../axios"

export function queryDepartmentUserId(userRole,userDepartment) {
    return axios.get('/queryDepartmentUserId?userRole=' + userRole + '&userDepartment=' + userDepartment)
}

export function getGeneralUserId() {
    return axios.get('/getGeneralUserId')
}

export function insertTodo(data) {
    return axios({
        method: 'POST',
        url: '/insertTodo',
        data: data,
    })
}

export function updateTodoStatus(todoType,orderId) {
    return axios.put('/updateTodoStatus?todoType=' + todoType + '&orderId=' + orderId)
}

export function updateDriverStatusFree(driverId) {
    return axios.put('/updateDriverStatusFree?driverId=' + driverId)
}

export function updateAutoStatusFree(autoPlateNum) {
    return axios.put('/updateAutoStatusFree?autoPlateNum=' + autoPlateNum)
}

// export function insertTodo(data){
//     axios.post('/insertTodo', data)
// } 

// export function insertTodo(toDoData){
//     axios.post('/insertTodo', toDoData, {
//     headers: {
//         'Content-Type': 'mutipart/json',
//     },
//     })
// } 